package cn.intotw.rdcj.user.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author Chenxiang
 * @Description:
 * @create 2020/4/14 20:29
 */
@Data
public class UserVo {
    @NotNull(message = "用户名不能为空")
    @Length(max = 100,min = 10,message = "用户名长度必须大于{min}且小于{max}")
    private String userName;
    @NotNull(message = "用户手机号不能为空")
    private String userPhone;
}